<?php

namespace common\models\shop;

use Yii;

/**
 * This is the model class for table "shop_goods_param".
 *
 * @property integer $id
 * @property integer $goodsid
 * @property string $title
 * @property string $value
 * @property integer $displayorder
 */
class ShopGoodsParam extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'shop_goods_param';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['goodsid', 'displayorder'], 'integer'],
            [['value'], 'string'],
            [['title'], 'string', 'max' => 50],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'goodsid' => 'Goodsid',
            'title' => 'Title',
            'value' => 'Value',
            'displayorder' => 'Displayorder',
        ];
    }
}
